All Questions
2 questions
0votes
1answer
81views
How to make sure, that only the selected post is changing?
So I was able to save the content of each post in an array, thanks to a very good answer on it: How to localize value of posts I just copied the solution here: function register_and_enqueue_script() ...
0votes
1answer
1kviews
Getting a variable inside foreach from PHP to JS after localization
I believe I have properly enqueue'ed and localized my script - I've got $q showing up in the DOM. Now I'm sure I'm missing the simple last step to accessing a variable in the JS function. Here's my ...